package com.kevin.j2eeToolBox.patterns.factoryMethod;

public class Grape implements Fruit {
	private boolean seedless; // 是否有籽

	/**
	 * 种植
	 */
	public void plant() {
		System.out.println("Grape has been planted.");
	}

	/**
	 * 生长
	 */
	public void grow() {
		System.out.println("Grape is growing...");
	}

	/**
	 * 收获
	 */
	public void harvest() {
		System.out.println("Grape has been harvested.");
	}

	/**
	 * @return 是否有籽
	 */
	public boolean getSeedless() {
		return seedless;
	}

	/**
	 * 有无籽的赋值方法
	 */
	public void setSeedless(boolean seedless) {
		this.seedless = seedless;
	}

	/**
	 * 辅助方法
	 */
	public static void log(String msg) {
		System.out.println(msg);
	}
}
